package com.eas.task.imports.status;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class JobStatus {

    private String uuid;

    private int examId;

    private String examName;

    private Date examDate;

    private String message;

    private String startTime;

    private String statusName;

    public JobStatus(String uuid) {
        this.uuid = uuid;
    }

    public String getExamName() {
        return examName;
    }

    public void setExamName(String examName) {
        this.examName = examName;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        DateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        this.startTime = startTime != null ? format.format(startTime) : format.format(new Date());
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getUuid() {
        return uuid;
    }

    public int getExamId() {
        return examId;
    }

    public void setExamId(int examId) {
        this.examId = examId;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Date getExamDate() {
        return examDate;
    }

    public void setExamDate(Date examDate) {
        this.examDate = examDate;
    }

}
